package org.springframework.factory;

import org.springframework.dto.JmUser;

/**
 * @author Jeremy
 * @version 1.0
 * @description: 测试FactoryMethod方法
 * @date 2024/7/10 16:56
 */
public class JmUserFactory {
	public static JmUser getObject(){
		JmUser jmUser = new JmUser();
		jmUser.setName("JmUserFactory");
		jmUser.setAge("1");
		return 	jmUser;
	}
	public JmUser getJmUser(){
		JmUser jmUser = new JmUser();
		jmUser.setName("JmUserFactoryNoStatic");
		jmUser.setAge("2");
		return 	jmUser;
	}

}
